﻿using System;

namespace yunio.websocket
{
    public struct YunioWebSocketConfig
    {
        public int AutoPingInterval = 30;
        public int ReadBufferSize = 4096;

        public YunioWebSocketConfig() { }

        public YunioWebSocketConfig SetAutoPingInterval(int time)
        {
            AutoPingInterval = time;
            return this;
        }
        public YunioWebSocketConfig SetReadBufferSize(int size)
        {
            ReadBufferSize = size;
            return this;
        }

    }
}
